package thread;

public class Demo19 {
    public static void main(String[] args) throws InterruptedException {
        Object lock = new Object();
        synchronized (lock) {
            System.out.println("wait之前");
            lock.wait(1000);
            System.out.println("wait之后");
        }
    }
}
